package com.lylg.picture_share.service;

import com.lylg.picture_share.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
     Integer addUser(User user);

     Integer registerUser(User user);

    Integer deleteUser(Integer id);

    Integer updateUser(User user);

    List<User> selectAllUser();

    User selectUserById(Integer id);

    void updStatus(Integer user_id);
    public User selectByNameAndPwd(@Param("mname") String user_name, @Param("mpwd") String user_pwd);
    User getUserByNameAndPwd(User user);

    void updPwd(Integer userId, String user_pwd);


}
